LLVM-CFG=/usr/local/bin/llvm-config

CXX = /usr/local/bin/g++
CXXFLAGS = -std=c++0x -g -O0 `$(LLVM-CFG) --cxxflags` -I../include
LDFLAGS = `$(LLVM-CFG) --ldflags` `$(LLVM-CFG) --libs`

-include Makefile.local

OBJS = main.o\
	expr_impl.o\
	assignment_impl.o\
	io.o\
	util.o\
	function_impl_tests.o\
	expression_meta_type_tests.o\
	meta_trans_tests.o\
	type_checker_tests.o\
	struct_tests.o\
	module_tests.o\
	meta_module_tests.o\
	meta_set_tests.o\
	definition_type_checking_tests.o\
	type_code_tests.o\
	driver_tests.o\
	llvm_program_tests.o\
	type_imbued_expr_tests.o\
	util_tests.o\
	idriver.o\
	llvm_driver.o\
	factorial_tests.o\
	map_tests.o\
	sequence_tests.o\
	native_tests.o\
	template_metaprogramming_tests.o\
	module_definition_binder.o\
	lambda_tests.o\
	llvm_type_conv.o\
	functor_tests.o\
	closure_tests.o\
	closure.o

metal: $(OBJS) 
	$(CXX) $(LDFLAGS) -o metal $(OBJS) 

clean: 
	rm -f metal $(OBJS) .depend

depend: 
	$(CXX) $(CXXFLAGS) -MM *.cpp > .depend

-include .depend
